package com.xywy.beautyand.util;

import java.util.Calendar;

public class MyDateUtils {
	/**
	 * չʾ��ǰ������ ��ʽ�ǣ�������x��x�� ����x
	 */
	public static String currentDay() {
		Calendar calendar = Calendar.getInstance();
		calendar.setTimeInMillis(System.currentTimeMillis());
		int month = 0; // �¡�
		if (calendar.get(Calendar.MONTH) > 11) {
			month = 1;
		} else {
			month = calendar.get(Calendar.MONTH) + 1;
		}
		int day_of_month = calendar.get(Calendar.DATE);
		int day_of_week = 0;
		if (calendar.get(Calendar.DAY_OF_WEEK) > 1) {
			day_of_week = calendar.get(Calendar.DAY_OF_WEEK) - 1;
		} else {
			day_of_week = 7;
		}
		return "������" + month + "��" + day_of_month + "��   ����" + day_of_week;
	}
}
